package utils;

public class NumberUtil {
	public static double roundDoubleToDigits(double num, int digits){
		if (digits <=0)
			return (int)num;
		int div = (int) Math.pow(10, digits);
		int multiplied = (int)(num * div);
		return multiplied/(double)div;
	}
}
